<script setup>
const f = () => {
  console.log('点击了')
}
const f2 = ()=>{
  console.log('即将为您搜索...')
}
</script>

<template>
<h1>我是c</h1>
  <button @click="f">按钮</button>
  <hr>
  <input type="text" placeholder="请输入商品名称" @keydown.enter="f2">
</template>

<style scoped>

</style>